# blib/drivers/line.py
#
#

""" single string oriented bot. """

## blib imports

from blib import Bot, Event

## standard imports

import sys

## CLIBot

class CLIBot(Bot):

    def _raw(self, txt): sys.stdout.write(txt) ; sys.stdout.write("\n") 

    def say(self, channel, txt): self._raw(txt)

    def get_one(self, *args, **kwargs):
        cmnd = " ".join(self.args)
        if not cmnd.startswith("."): cmnd = "." + cmnd
        return Event(txt=cmnd)

